package com.qing.expert.modules.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qing.expert.modules.admin.entity.Announcement;
import com.qing.expert.modules.admin.vo.request.AnnouncementRequest;

public interface AnnouncementService extends IService<Announcement> {

    /**
     * 创建通告
     */
    void createAnnouncement(AnnouncementRequest request);

    /**
     * 更新通告
     */
    void updateAnnouncement(Long id, AnnouncementRequest request);

    /**
     * 删除通告
     */
    void deleteAnnouncement(Long id);

    /**
     * 分页获取通告列表
     */
    Page<Announcement> getAnnouncementPage(Integer page, Integer size);

    /**
     * 获取首页展示的通告列表
     */
    Page<Announcement> getHomeAnnouncementList(Integer page, Integer size);
}